package com.speed.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class GenerationSerialNo {
	private static String getTimeStamp() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
		return sdf.format(new Date());
	}

	public static String generNo() {
		String timeStamp = getTimeStamp();
		String no = timeStamp.substring(9);
		return no;
	}

	public static String generFullNo() {
		String timeStamp = getTimeStamp();
		return timeStamp;
	}
}
